#include "pch.h"
#include <fmt\core.h>

typedef char* PSZ;
typedef const char* PCSZ;

struct ZeroSizeStruct{};

#define PL_SIZEOF(T) printf("sizeof(" #T ")=%u\n", sizeof(T))

int _tmain(int argc, TCHAR** argv)
{
    _tprintf(_T("Program: %s\n"), argv[0]);
    printf("Built on %s %s\n", __DATE__, __TIME__);
    printf("Compiled using GCC version %d.%d.%d\n", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
    printf("__cplusplus = %ld\n", __cplusplus);
    puts("");

	PL_SIZEOF(_TCHAR);
	PL_SIZEOF(wchar_t);
	PL_SIZEOF(void*);
	PL_SIZEOF(short);
	PL_SIZEOF(int);
	PL_SIZEOF(long);
	PL_SIZEOF(long int);
	PL_SIZEOF(long long);
	PL_SIZEOF(float);
	PL_SIZEOF(double);
	PL_SIZEOF(ZeroSizeStruct);
	puts("");

	_putts(_tgetenv(_T("PATH")));

	fmt::print("\nfmtlib test: {0:#x}={0}\n", 0x1234567890abcdef);

    return 0;
}
